package com.example.demo.service;

import com.example.demo.dao.UserMapper;
import com.example.demo.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.Map;

/**
 * @author zhangyx
 * @desc
 * @date 2020/8/11 9:14
 **/
@Service
public class UserService {

    @Autowired
    private UserMapper userMapper;

    public User getUser(User user){
        return userMapper.getUserBynameAndPassword(user);
    }
}
